{% extends "front/frontsign_base.html" %}

{% block title %}
    知了论坛注册
{% endblock %}


{% block head %}
    <script src="https://cdn.bootcss.com/blueimp-md5/2.10.0/js/md5.min.js"></script>
    <script src="{{ static("front/js/signup.js") }}"></script>

{% endblock %}


{% block page_title %}
    {{ self.title() }}
{% endblock %}


{% block sign_box %}
    <div class="form-group">
        <div class="input-group">
            <input type="text" class="form-control" name="telephone" placeholder="手机号码">
            <span class="input-group-btn">
                        <button id="send-captcha-btn" class="btn btn-default">发送验证码</button>
                    </span>
        </div>
    </div>
    <div class="form-group">
        <input type="text" class="form-control" name="sms_captcha" placeholder="短信验证码">
    </div>

    <div class="form-group">
        <input type="text" class="form-control" name="username" placeholder="用户名">
    </div>

    <div class="form-group">
        <input type="text" class="form-control" name="password1" placeholder="密码">
    </div>

    <div class="form-group">
        <input type="text" class="form-control" name="password2" placeholder="确认密码">
    </div>

    <div class="form-group">
        <div class="input-group">
            <input type="text" class="form-control" name="graph_captcha" placeholder="图片验证码">

            <span class="input-group-addon captcha-addon">
                        <img id="captcha-img" class="captcha-img" src="{{ url_for("common.gene_captcha") }}" alt="">
                    </span>
        </div>
    </div>

    <div class="form-group">
        <span style="display: none" id="return-to-span">{{ return_to }}</span>
        <button class="btn btn-warning btn-block" id="submit-btn">立即注册</button>
    </div>
{% endblock %}